T
The type of the value.
Keysight Pathwave 89600 VSA .NET API
Value<T>(String,T) Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace > IStateDictionary Interface > Value Method : Value<T>(String,T) Method


key
The key name.
defaultValue
The value to return if there is no value in state for the specified key.

Glossary Item Box

Gets the value associated with a specified key.

Syntax

Visual Basic (Declaration) 
Overloads Function Value(Of T)( _
   ByVal key As String, _
   ByVal defaultValue As T _
) As T
C# 
T Value<T>( 
   string key,
   T defaultValue
)
C++/CLI 
T^ Valuegeneric<typename T>
( 
   String^ key,
   T^ defaultValue
) 

Parameters

key
The key name.
defaultValue
The value to return if there is no value in state for the specified key.

Type Parameters

T
The type of the value.

Return Value

The value in state if it exists; otherwise the defaultValue.

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also